home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 July: Mac OS SDK / Dev.CD Jul 99 SDK1.toast / Development Kits / Mac OS / Telephone Manager / Stiletto Sources / ModuleSources / GetTELVersion.c < prev    next >
Encoding:
C/C++ Source or Header  |  1995-06-26  |  1.9 KB  |  62 lines  |  [TEXT/MPS ]

  1. /************************************************************************************************/
  2. /*                                                                                                */
  3. /*    Module Name:    GetTELVersion                                                                */
  4. /*                                                                                                */
  5. /*    File Name:        GetTELVersion.c                                                                */
  6. /*                                                                                                */
  7. /*    © Apple Computer, Inc. 1991-1995                                                            */
  8. /*    All Rights Reserved                                                                            */
  9. /*                                                                                                */
  10. /*    Revision History:                                                                            */
  11. /*                                                                                                */
  12. /*        Date        Who                    Modification                                            */
  13. /*                                                                                                */
  14. /*        1991-08-12    Chris Halim            Original version                                        */
  15. /*        1995-06-26    Jaakko Railo        Version 2.0                                                */
  16. /*                                                                                                */
  17. /************************************************************************************************/
  18.  
  19. /****************************************** DESCRIPTION ******************************************
  20.  
  21. *************************************************************************************************/
  22.  
  23. /******************************************** HEADERS *******************************************/
  24.  
  25. #include "TestModule.h"
  26.  
  27. /****************************************** DEFINITIONS *****************************************/
  28.  
  29. /****************************************** PROTOTYPES ******************************************/
  30.  
  31. void     DoTest (CHRSPtr paramPtr);
  32.  
  33. /************************************************************************************************/
  34. /************************************************************************************************/
  35.  
  36.  
  37. pascal short TestModule (CHRSPtr paramPtr)
  38. {
  39.     short    returnValue = noErr;
  40.     
  41.     if (paramPtr->version <= kTestModuleVersion) {
  42.         
  43.         DoTest (paramPtr);
  44.         
  45.     }
  46.     else
  47.         returnValue = kWrongVersion;
  48.         
  49.     return (returnValue);
  50. }
  51.  
  52.  
  53. void DoTest (CHRSPtr paramPtr)
  54. {
  55.     short    version;
  56.         
  57.     version = TELGetTELVersion ();
  58.     Print (paramPtr, " TEL version : %d", version);
  59. }
  60.  
  61.  
  62.